Avoid a possible array overrun. (Coverity)
authorMatthias Clasen <mclasen@redhat.com>
Sun, 16 Apr 2006 05:05:49 +0000 (05:05 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 16 Apr 2006 05:05:49 +0000 (05:05 +0000)
2006-04-16  Matthias Clasen <mclasen@redhat.com>

        * gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
        possible array overrun.  (Coverity)

ChangeLog
ChangeLog.pre-2-10
gdk/x11/gdkwindow-x11.c

index f1503e98955889c05c63ff9f8de0bba278790d39..1206eb85907188fe87819e91d516125bd1b00d62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2006-04-16  Matthias Clasen <mclasen@redhat.com>
 
+       * gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
+       possible array overrun.  (Coverity)
+
+       * gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a
+       possible array overrun.  (Coverity)
+
        * gtk/gtktextbuffer.c (_gtk_text_buffer_remove_all_tags):
        Avoid a NULL dereference.  (Coverity)
 
index f1503e98955889c05c63ff9f8de0bba278790d39..1206eb85907188fe87819e91d516125bd1b00d62 100644 (file)
@@ -1,5 +1,11 @@
 2006-04-16  Matthias Clasen <mclasen@redhat.com>
 
+       * gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
+       possible array overrun.  (Coverity)
+
+       * gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a
+       possible array overrun.  (Coverity)
+
        * gtk/gtktextbuffer.c (_gtk_text_buffer_remove_all_tags):
        Avoid a NULL dereference.  (Coverity)
 
index 23d6778a817caeffab917f89fc69920afb9167c8..384711ce4f32e1c03cb916c9ce583cd35bd47314 100644 (file)
@@ -1250,7 +1250,7 @@ set_initial_hints (GdkWindow *window)
   Window xwindow = GDK_WINDOW_XID (window);  
   GdkWindowObject *private;
   GdkToplevelX11 *toplevel;
-  Atom atoms[7];
+  Atom atoms[9];
   gint i;
 
   private = (GdkWindowObject*) window;